augmented-dsp-filters
Mechanical port of Vinnie Falco's https://github.com/vinniefalco/DSPFilters/.
Only RBJ filters are ported over. No introspection is supported & the implementation is quite a different (as Rust would prefer composition to multiple inheritance).
Very untested, be careful with your speakers.
Depends on audio-processor-traits
. Exports FilterProcessor
which may be used for general filtering needs.
See synth
on this repository for a nice working example.
Low-pass filter example
use ;
use ;
Multi-threading
The filter mutate functions recalculate coefficients for the filter. This should run on the audio-thread only.
In order to integrate with MIDI, see synth
; this won't be a problem as AudioProcessor
(stand-alone) will receive
MIDI on the audio-thread.
For integrating with a GUI thread, the best would probably be to have the audio-thread read the parameters from an
atomic store & update the filter when they change (see audio-parameter-store
in this repository).
License
MIT licensed as the original.